package com.csi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.print.attribute.standard.PrinterLocation;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 用户预定表
 */
@Data
public class UserBook implements Serializable {
    private long id; //订单id
    private String phone; //联系电话
    private String payStatus;//支付状态 -- 待支付、待使用、待评价、已评价
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Timestamp checkTime;//开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Timestamp leaveTime; //结束时间
    private BigDecimal bookPrice;//预定价格
    private long userId;//用户id
    private long travelPackageId; //旅行套餐id
    private Integer peopleNum; //预定人数
}
